package com.gzgy.ustore.api.service.impl;

import com.gzgy.ustore.api.dao.RoleDao;
import com.gzgy.ustore.api.service.RoleService;
import com.ustore.model.Roles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;
    @Override
    @Cacheable(value = "roleList")
    public List<Roles> getRoleList() {
        return roleDao.roleList();
    }
}
